package com.xxxx.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxxx.server.pojo.Department;
import com.xxxx.server.common.resp.RespBean;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhoubin
 * @since 2021-12-20
 */
public interface DepartmentMapper extends BaseMapper<Department> {

    /**
    添加部门
     */
    RespBean addDepartment(Department department);

    /**
    删除部门
     */
    RespBean deleteDepartment(Department department);

    /**
    查询所有部门
     */
    List<Department> getAllDepartment(Integer parentId);
}
